package com.atguigu.controller;

import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * ClassName: ViewTestController
 * Package: com.atguigu.controller
 * Description:
 *
 * @Author Root
 * @Create 2023/3/31 16:08
 * @Version 1.0
 */
@Controller
public class ViewTestController {
    @GetMapping("/atguigu")
    public String atguigu(Model model){
        model.addAttribute("data","Data");
        model.addAttribute("link","http://www.baidu.com");
        return "success";
    }


}
